const {
	Service
} = require('uni-cloud-router')
const uniID = require("uni-id");
module.exports = class PersonService extends Service {
	async getSelectPersonData(post) {
		const db = uniCloud.database();
		let res = await db.collection('uni-id-users').field({ '_id': true,'username': true, }).get()
		if (res.affectedDocs) {
		    return {code: 0,data:res.data, msg: '获取成功'}  
		} else {  
		    return {code: 1, msg: '获取失败'}  
		}  
	}
}